#include "CMethodsInfo.h"

CMethodsInfo::CMethodsInfo()
{
    this->Methods = new QList<QString>();
}

int CMethodsInfo::getCount(){
    return this->MethodsCount;
}

void CMethodsInfo::addMethod(QString MethodName){
    if(MethodName.isEmpty()){
        return;
    }
    this->Methods->append(MethodName);
    this->MethodsCount+=1;
}

QString CMethodsInfo::getMethod(int index){
    if(index>=0 && index<this->MethodsCount){
        return this->Methods->at(index);
    }
    else{
        return "";
    }

}

QString CMethodsInfo::getPath(){
    return this->FoldName;
}

void CMethodsInfo::setPath(QString FoldPath){
    if(FoldPath.isEmpty()) return ;
    this->FoldName= FoldPath;
}
